function abrirAplicacionPopUp(alto,ancho,tituloVentana,pagina)
{
    var top = 0;
    var left = 0;

    if (alto != -1 && ancho != -1) {
        top = ((screen.height / 2) - (alto / 2));
        left = ((screen.width / 2) - (ancho / 2));
    }
    else {
        alto = screen.availHeight - 10;
        ancho = screen.availWidth - 10;
    }

    var ventana = window.open(pagina, tituloVentana, 'top=' + top + ',left=' + left + ',height=' + alto + ',width=' + ancho + ',status=no,toolbar=no,menubar=yes,location=no,resizable=yes');
}
